package com.zhigh.project.security.jwt.authentication;

import org.springframework.security.core.CredentialsContainer;

/**
 * JSON Web Token Object:
 * 封装了一个jwt对象
 */
public interface JWT extends CredentialsContainer {

    /**
     * 签名
     *
     * @return
     */
    String getSignature();

    JWTHeader getHeader();

    JWTPayload getPayload();

    String getTokenStr();

    boolean verify(String secret);

    boolean isEnabled();

    boolean isNonExpired();
}
